import cv2
import numpy as np

black = np.zeros((1080, 1920, 3), dtype=np.uint8)

track_his = np.load("id_2_trajectory.npy") * 1024
track_pred = np.load("id_2_trajectory_pred.npy").reshape(8, 2) / 10 * 1024
print(track_pred)

for x, y in track_his.astype(int):
    cv2.circle(black, (x, y), 0, (0, 255, 0 ), 5)

for x, y in track_pred.astype(int):
    cv2.circle(black, (x, y), 0, (0, 0, 255 ), 5)

cv2.imshow("t", black)
cv2.waitKey(0)